package com.devin.service;

import com.devin.pojo.UserInfo;
import org.springframework.security.core.authority.SimpleGrantedAuthority;
import org.springframework.security.core.userdetails.User;
import org.springframework.security.core.userdetails.UserDetailsService;

import java.util.List;

public interface UserService extends UserDetailsService {
    List<UserInfo> getUsers(int page,int size);

    void delUser(int userId);

    void addUser(UserInfo user,Integer[] roleIds);

    UserInfo getUsersDetail(int userId);

    void addRoles(Integer userId,Integer[] roleIds);

    void delRoleByUserId(Integer userId, Integer roleId);
}
